﻿<%@ Page Title="" Language="C#" ValidateRequest="false" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MiserBlogData.Entities.Article>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script src="/Scripts/kindeditor.js" type="text/javascript"></script>
<script src="/Scripts/editer.js" type="text/javascript"></script>
<script type="text/javascript">
    editerShow('txtArticleContent');
</script>
    <h2>Create</h2>
    <%using (Html.BeginForm("Create", "ManageArticle", FormMethod.Post))
      { %>
        <div>
            <span style=" width:50px; display:inline-block; width:50px"><%=Html.Label("标题：")%></span>
            <span><%=Html.TextBoxFor(model => model.Title, new { @id = "articleTitle", @class = "txtEditerTitle" })%></span>
        </div>
        <div style="margin-top:20px">
            <%=Html.TextAreaFor(model => model.Content, new { @id = "txtArticleContent", @class = "txtEditerContent" })%>
        </div>
        <div style="margin-top:20px">
            <%=Html.RadioButtonFor(model => model.State, 0, new { @name = "state", @id = "startState" })%>
            <label for="startState">开启</label>
            <%=Html.RadioButtonFor(model => model.State, 3, new { @name = "state", @id = "ineffectState" })%>
            <label for="ineffectState">草稿</label>
        </div>
        <div style="margin-top:20px">
            <span style=" width:50px; display:inline-block; width:50px"><%=Html.Label("分类：")%></span>
            <%= Html.DropDownListFor(model => model.Categories.Id, MiserBlogData.Entities.Categories.GetSelf(((MiserBlogMVC.Models.UserVIPIdentity)HttpContext.Current.User.Identity).Person.Id))%>
        </div>
        <div style="margin-top:20px">
            <span style=" width:50px; display:inline-block; width:50px"><%=Html.Label("标签：")%></span>
            <%= Html.TextBoxFor(model => model.TagStr, new { @id = "articleTagStr", @class = "txtEditerTitle" })%>
        </div>
        <div style="margin-top:20px">
            <input type="submit" value="提交" />
        </div>
        <%=Html.HiddenFor(model => model.CDate) %>
        <%=Html.HiddenFor(model => model.Visits) %>
    <%} %>
    
</asp:Content>